<template>
	<view>
		<view class="navigationTop" >
			<view class="navigationImage" @tap="back">
				<image src="../../static/img/back.png" mode="widthFix" v-if="isBack" ></image>
			</view>
			<view v-if="toFrom" :style="{color: topColor}">{{toFrom}}</view>
			<view v-if="imgSrc" class="imgBox">
				<image class="indexTopImg" :src="imgSrc" mode="widthFix"></image>
			</view>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		name:"navigationTop",
		props:['isBack','toFrom','imgSrc','topColor'],
		data() {
			return {
				
			};
		},
		methods:{
			back(){
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss">
	.navigationTop{
		display: flex;
		width: 100%;
		height: 88rpx;
		padding-top: 88rpx;
		align-items: center;
		font-size: 36rpx;
		font-family: Inter, Inter;
		font-weight: bold;
		color: #000000;
		.navigationImage{
			display: flex;
			align-items: center;
			justify-content: center;
			width: 88rpx;
			height: 88rpx;
			margin-right: 200rpx;
			image{
				width: 48rpx;
			}
		}
		
		.imgBox {
			display: flex;
			align-items: center;
			justify-content: center;
			height: 88rpx;
			margin-left: 16rpx;
			// width: 160rpx;
			.indexTopImg {
				width: 148rpx;
			}
		}
		
	}
</style>